﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TanHuan.Authorize.Web.Controllers
{
    public class LoginController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult GetUserByNameAndPwd(string userName, string pwd)
        {
            if (userName == "admin" && pwd == "123")
            { return Json(1); }
            else 
            { return Json(0); }
        }
    }
}
